import SvgIcon from "@/components/SvgIcon/index.vue";
// import Pagination from '@/components/Pagination/index.vue'
import Head from "@/components/Head/index.vue";
import ButtonGroup from "@/components/ButtonGroup/index.vue";
import type { GlobalComponents } from "./type";
import Dialogue from "@/components/Dialogue/index.vue";

import BasicDialog from "@/components/BasicDialog/index.vue";
import SymptomBtns from "@/components/SymptomBtns/index.vue";

const allGlobalComponents: GlobalComponents = {
  SvgIcon,

  Head,
  ButtonGroup,
  Dialogue,

  BasicDialog,
  SymptomBtns,
};
console.log(allGlobalComponents, "allGlobalComponents");

//对外暴露插件对象
export default {
  install(app: any) {
    //注册为全局组件
    Object.keys(allGlobalComponents).forEach((key) =>
      app.component(key, allGlobalComponents[key])
    );
  },
};
